package com.customer.crm.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.customer.crm.system.pojo.SystemRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * The interface System role service.
 */
@Service
public interface SystemRoleService extends IService<SystemRole> {

    /**
     * 根据用户id查询角色信息
     *
     * @param id the id
     * @return list
     */
    List<SystemRole> findByUserId(String id);

    /**
     * Page list.
     *     分页数据
     * @param page the page
     * @param rows the rows
     * @return the list
     */
    List<SystemRole> page( Long page, Long rows);
}
